package com.yykj.drup.client.feign;


import com.yykj.common.vo.ResultVO;
import com.yykj.drup.client.feign.fallback.DrupServerFeignFallBack;
import com.yykj.drup.client.form.DoctorProductFrom;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @Author zeng
 * @Date 2022/3/17
 */
@Service
@FeignClient(name = "drug-server", fallbackFactory = DrupServerFeignFallBack.class)
public interface DrupServerFeign {

    @GetMapping("/api/drug/product/addOften")
    ResultVO addOften(@RequestBody DoctorProductFrom from);
}
